<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <script type="text/javascript" src="${ctx}/appjs/acct/orderAcctBillOrder.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>分销商结算</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>订单明细</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="nickname" name="nickname" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="会员名">
                    <input id="mobile" name="mobile" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="手机号">
                    <input id="orderNum" name="orderNum" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="订单号">
                    <input id="epName" name="epName" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="桩群名">
                    <input id="gunNo" name="gunNo" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="枪号">
                    <input id="startTime" name="startTime" type="text" class="form-control shortInput input-distance"
                           placeholder="开始时间" readonly>
                    <input id="endTime" name="endTime" type="text" class="form-control shortInput input-distance"
                           placeholder="结束时间" readonly>

                    <input id="billStartTime" name="billStartTime" type="hidden"  value="<fmt:formatDate value="${acctBillOrder.billStartTime}" pattern="yyyy-MM-dd HH:mm:ss" />"    >
                    <input id="billEndTime" name="billEndTime" type="hidden"  value="<fmt:formatDate value="${acctBillOrder.billEndTime}" pattern="yyyy-MM-dd HH:mm:ss" />"  >
                    <input id="elecStationId" name="elecStationId" type="hidden" value="${acctBillOrder.elecStationId}">
                    <input id="tenantCode" name="tenantCode" type="hidden" value="${acctBillOrder.tenantCode}">

                    <button class="btn btn-success input-distance" onclick="orderAcctBillOrder.reLoad()">查询</button>
                    <button type="button" class="btn btn-success marginright-auto input-distance"
                            onclick="orderAcctBillOrder.exportOrderAcctBillOrder()">
                        导出</button>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

    // //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(), //设定最小日期为当前日期
        // max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(),
        // max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤


    orderAcctBillOrder.init();
</script>
</body>
</html>